package com.systemframework.sys.dto.request;

import com.systemframework.sys.dto.request.common.PageResponseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author summer
 * @date 2023-04-06 10:04
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class EmailTemplateRequestDTO extends PageResponseDTO implements Serializable {

    private Integer id;

    @NotBlank(message = "模板名称不能为空")
    private String name;

    @NotBlank(message = "模板编码不能为空")
    private String code;

    @NotNull(message = "邮箱不能为空")
    private Integer accountId;

    private String sendName;

    @NotBlank(message = "标题不能为空")
    private String title;

    private String content;

}
